﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using vudu.ClasesDominio;
using vudu.Logica.IComandos;
using vudu.Logica.Clases;

namespace vudu.Logica.Comandos
{
    public class ComandoCrearPensum: Comando<int>
    {
        private Pensum _pensum;

        public Pensum Pensum
        {
            get { return _pensum; }
        }

        public ComandoCrearPensum(Pensum p)
        {
            _pensum = p;
        }

        public override int Ejecutar()
        {
            return new ControladorPensum().AgregarPensum(_pensum);
        }

    }
}